package com.sun.showcase.biz.mall.dao;

import com.sun.showcase.client.domain.mall.Advert;
import com.sun.showcase.client.query.mall.AdvertQuery;
import com.sun.showcase.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdvertDao extends BaseDao<Advert, String> {
	/**
	 * 查询列表
	 */
	public List<Advert> findList(AdvertQuery advertQuery);
	
	/**
	 * 根据条件更新部分字段   新建一个query封装需要更新的字段
	 * searchMap封装更新条件
	 * */
	public void updatePart(AdvertQuery advertQuery);
	/**
	 * 逻辑删除
	 * @param ids
	 */
	public void deletePt(String[] ids);
	/**
	 * 物理删除
	 * @param ids
	 */
	public void deleteAc(String[] ids);

}
